/*
 * XML Type:  SignonRequestMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.SignonRequestMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML SignonRequestMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class SignonRequestMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractRequestMessageSetImpl implements net.ofx.types.x2003.x04.SignonRequestMessageSetV1
{
    
    public SignonRequestMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SONRQ$0 = 
        new javax.xml.namespace.QName("", "SONRQ");
    private static final javax.xml.namespace.QName PINCHTRNRQ$2 = 
        new javax.xml.namespace.QName("", "PINCHTRNRQ");
    private static final javax.xml.namespace.QName CHALLENGETRNRQ$4 = 
        new javax.xml.namespace.QName("", "CHALLENGETRNRQ");
    
    
    /**
     * Gets the "SONRQ" element
     */
    public net.ofx.types.x2003.x04.SignonRequest getSONRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SignonRequest target = null;
            target = (net.ofx.types.x2003.x04.SignonRequest)get_store().find_element_user(SONRQ$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "SONRQ" element
     */
    public void setSONRQ(net.ofx.types.x2003.x04.SignonRequest sonrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SignonRequest target = null;
            target = (net.ofx.types.x2003.x04.SignonRequest)get_store().find_element_user(SONRQ$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SignonRequest)get_store().add_element_user(SONRQ$0);
            }
            target.set(sonrq);
        }
    }
    
    /**
     * Appends and returns a new empty "SONRQ" element
     */
    public net.ofx.types.x2003.x04.SignonRequest addNewSONRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SignonRequest target = null;
            target = (net.ofx.types.x2003.x04.SignonRequest)get_store().add_element_user(SONRQ$0);
            return target;
        }
    }
    
    /**
     * Gets the "PINCHTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PinChangeTransactionRequest getPINCHTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PinChangeTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PinChangeTransactionRequest)get_store().find_element_user(PINCHTRNRQ$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PINCHTRNRQ" element
     */
    public boolean isSetPINCHTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PINCHTRNRQ$2) != 0;
        }
    }
    
    /**
     * Sets the "PINCHTRNRQ" element
     */
    public void setPINCHTRNRQ(net.ofx.types.x2003.x04.PinChangeTransactionRequest pinchtrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PinChangeTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PinChangeTransactionRequest)get_store().find_element_user(PINCHTRNRQ$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PinChangeTransactionRequest)get_store().add_element_user(PINCHTRNRQ$2);
            }
            target.set(pinchtrnrq);
        }
    }
    
    /**
     * Appends and returns a new empty "PINCHTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PinChangeTransactionRequest addNewPINCHTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PinChangeTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PinChangeTransactionRequest)get_store().add_element_user(PINCHTRNRQ$2);
            return target;
        }
    }
    
    /**
     * Unsets the "PINCHTRNRQ" element
     */
    public void unsetPINCHTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PINCHTRNRQ$2, 0);
        }
    }
    
    /**
     * Gets the "CHALLENGETRNRQ" element
     */
    public net.ofx.types.x2003.x04.ChallengeTransactionRequest getCHALLENGETRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ChallengeTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.ChallengeTransactionRequest)get_store().find_element_user(CHALLENGETRNRQ$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CHALLENGETRNRQ" element
     */
    public boolean isSetCHALLENGETRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CHALLENGETRNRQ$4) != 0;
        }
    }
    
    /**
     * Sets the "CHALLENGETRNRQ" element
     */
    public void setCHALLENGETRNRQ(net.ofx.types.x2003.x04.ChallengeTransactionRequest challengetrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ChallengeTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.ChallengeTransactionRequest)get_store().find_element_user(CHALLENGETRNRQ$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ChallengeTransactionRequest)get_store().add_element_user(CHALLENGETRNRQ$4);
            }
            target.set(challengetrnrq);
        }
    }
    
    /**
     * Appends and returns a new empty "CHALLENGETRNRQ" element
     */
    public net.ofx.types.x2003.x04.ChallengeTransactionRequest addNewCHALLENGETRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ChallengeTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.ChallengeTransactionRequest)get_store().add_element_user(CHALLENGETRNRQ$4);
            return target;
        }
    }
    
    /**
     * Unsets the "CHALLENGETRNRQ" element
     */
    public void unsetCHALLENGETRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CHALLENGETRNRQ$4, 0);
        }
    }
}
